//
//  BaseViewController.m
//  ThemeManager
//
//  Created by weiguang on 2017/1/13.
//  Copyright © 2017年 weiguang. All rights reserved.
//

#import "TabBarController.h"

@interface TabBarController ()

@end

@implementation TabBarController

- (void)setColor {
    [self.tabBar setTintColor:[[ThemeManger shareInstance] getThemeColor]];
}

- (void)dealloc
{
    [[NSNotificationCenter defaultCenter] removeObserver:self];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self.tabBar setTintColor:[[ThemeManger shareInstance] getThemeColor]];
    
    [[NSNotificationCenter defaultCenter]
     addObserver:self
     selector:@selector(setColor)
     name:kThemeColorChangeNotification object:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
